package com.ruoyi.core.service.impl;

import com.ruoyi.common.constant.Constants;
import com.ruoyi.core.service.PacService;
import com.ruoyi.system.mapper.SysConfigMapper;
import com.ruoyi.system.service.ISysConfigService;
import com.ruoyi.system.service.impl.SysConfigServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author xiaom
 * @Date 2021/4/13 11:21
 * @Version 1.0.0
 * @Description <>
 **/
@Service
@Slf4j
public class PacServiceImpl implements PacService {

    @Autowired
    private ISysConfigService sysConfigService;

    @Override
    public String getPacCode() {
        return sysConfigService.selectConfigByKey(Constants.PAC_KEY);
    }
}
